home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / SETUP.IN < prev    next >
Text File  |  1997-05-24  |  10KB  |  303 lines

  1. #
  2. # This is the TNOS configuration as distributed by KO4KS
  3. #
  4. comment "TNOS configuration for release $RELEASE"
  5. commentlocal ""
  6. commentlocal "Welcome to the autoexec.nos configuration program!"
  7. commentlocal "There are a LOT of questions, but it ends eventually ;-)"
  8. commentlocal ""
  9. #
  10. #
  11. setlabel "Turn on the status line" "statline on" quiet
  12. comment "Identify the station...."
  13. label "Hostname for this TNOS machine" hostname
  14. set HOSTNAME "$ans"
  15. label "Callsign to use for this machine" "ax25 mycall"
  16. set MYCALL "$ans"
  17. label "IP address for this machine" "ip address"
  18. set IPADDR "$ans"
  19. setlabel "" "# Default Command Session prompting style" ""
  20. setlabel "" prompt hostname
  21. #
  22. #
  23. comment "Set up DNS for usage...."
  24. if {[info exists DSERVER] && $DSERVER == "y"} {
  25.   bool "Enable local Domain Server" "domain dns on"
  26.   setlabel "" "domain ttl" 7200
  27. }
  28. label "Hostname to serve as a remote Domain Name Server" "domain addserver"
  29. setlabel "" "domain maxwait" 10
  30. setlabel "" "domain suffix" ampr.org.
  31. setlabel "" "domain translate" off
  32. setlabel "" "domain subnet" off
  33. setlabel "" "domain verbose" off
  34. setlabel "" "domain update" off
  35. setlabel "" "domain cache size" 200
  36. setlabel "" "domain cache clean" on
  37. setlabel "" "domain cache wait" 3600
  38. #
  39. #
  40. comment "Adding TCP global parameters...."
  41. setlabel "" "tcp irtt" 1500
  42. setlabel "" "tcp window" 1024
  43. setlabel "" "tcp mss" 216
  44. setlabel "" "tcp timer" linear
  45. setlabel "" "tcp syndata" on
  46. #
  47. #
  48. if {$ISUNIX == "y" && $SLIP == "y"} {
  49.   comment "Attach the interface to the Unix kernel...."
  50.   setlabel "" "attach asy ttypf - slip linux 1024 1024" 38400
  51.   setlabel "" "asyconfig linux rxqueue" 30
  52.   setlabel "" "asyconfig linux txqueue" 10
  53.   setlabel "" "ifconfig linux description" "\"Slip Link to Unix\""
  54.   label "IP Address of TNOS side of the link" "ifconfig linux ipaddress"
  55.   label "Broadcast Address of the link" "ifconfig linux broadcast"
  56.   label "Netmask for the link" "ifconfig linux netmask"
  57.   setlabel "" "ifconfig linux tcp irtt" 500
  58. }
  59. #
  60. #
  61. #
  62. if {$ENCAP == "y"} {
  63.   comment "Commands for encap interface"
  64.   setlabel "" "ifconfig encap mtu" 576
  65. }
  66. #
  67. #
  68. comment "Adding global IP commands....."
  69. setlabel "" "ip ttl" 255
  70. if {$ENCAP == "y"} {
  71.   setlabel "" "ip encapnew" on
  72. }
  73. #
  74. #
  75. comment "Gentlemen, start your servers....."
  76. bool "Start AX25 Server" "start ax25"
  77. bool "Start SMTP Server" "start smtp"
  78. bool "Start FTP Server" "start ftp"
  79. bool "Start Finger Server" "start finger"
  80. bool "Start Remote Command Server" "start remote"
  81. if {$ALLSERV == "y"} {
  82.   bool "Start Echo Server" "start echo"
  83.   bool "Start Discard Server" "start discard"
  84.   bool "Start Daytime Server" "start daytime"
  85.   bool "Start Incoming Chat Server" "start ttylink"
  86.   bool "Start Quote of the Day Server" "start quote"
  87.   bool "Start Time Server" "start time"
  88. }
  89. if {$MAILBOX == "y"} {
  90.   bool "Start BBS Server" "start telnet"
  91. }
  92. if {$CONVERS == "y"} {
  93.   bool "Start Conference Server" "start convers 3600"
  94. }
  95. if {$RLOGINSERV  == "y"} {
  96.   bool "Start RLogin Server" "start rlogin"
  97. }
  98. if {$TUTOR == "y"} {
  99.   bool "Start Tutor Server" "start tutor"
  100.   bool "Start Info Server" "start info"
  101.   bool "Start News Server (not NNTP)" "start news"
  102. }
  103. if {$TRACESERVER == "y"} {
  104.   bool "Start Trace Server" "start trace"
  105. }
  106. #
  107.  
  108. comment "Adding SMTP parameters....."
  109. setlabel "" "smtp timer" 60
  110. setlabel "" "smtp max" 4
  111. setlabel "" "smtp trace" 0
  112. setlabel "" "smtp usemx" on
  113. setlabel "" "smtp batch" off
  114. setlabel "" "smtp header" on
  115. setlabel "" "smtp sendlzw" on
  116. setlabel "" "smtp reclzw" on
  117. setlabel "" "smtp bidcheck" on
  118. setlabel "" "smtp notify" on
  119. setlabel "" "smtp quiet" off
  120. setlabel "" "smtp t4" 60
  121. label "SMTP Gateway" "smtp gateway"
  122. #
  123. #
  124. if {$MAILBOX == "y"}    {
  125.   comment "BBS parameters....."
  126.   setlabel "" "pbbs attend" on
  127.   setlabel "" "pbbs enforce" on
  128.   setlabel "" "pbbs motd" "\"Welcome to TNOS at ${HOSTNAME}!\""
  129.   setlabel "" "pbbs jumpstart" on
  130.   setlabel "" "pbbs tdisc" 900
  131.   setlabel "" "pbbs tmsg" "\"Welcome! Please login with your call sign! Use any password!\n\""
  132.   label "Enter an alias callsign for the BBS" "pbbs alias"
  133.   label "Enter a password for remote sysop acceptance" "pbbs password"
  134.   setlabel "" "pbbs log" on
  135.   setlabel "" "pbbs nosubjbell" on
  136.   bool "Do you wish to hold all locally generated mail for review" "pbbs holdall on"
  137.   if {$ans == "y"} {
  138.     setlabel "" "bulletin hold" on
  139.   } else {
  140.     bool "Do you wish to hold all locally generated BULLETINS for review" "bulletin hold on"
  141.   }
  142.   setlabel "" "errors" off
  143.   bool "Will this be a full-service BBS" "pbbs fullservice on"
  144.   if {$ans == "y"} {
  145.     bool "Will you allow third-party traffic" "third on"
  146.   }
  147.   setlabel "" "motd" "\"Welcome to $HOSTNAME!\""
  148.   setlabel "" "bulletin date" on
  149.   setlabel "" "bulletin check" on
  150.   setlabel "" "bulletin return" on
  151.  
  152.   if {$MAILFOR == "y"} {
  153.     comment "Options for the Mailfor feature...."
  154.     setlabel "" "pbbs mailfor exclude" $MYCALL
  155.     setlabel "" "pbbs mailfor timer" 1200
  156.     if {$HOLDMONITOR == "y"} {
  157.       setlabel "" "pbbs mailfor hold mode" on
  158.       if {[info exists SOUNDS] && $SOUNDS == "y"} {
  159.         setlabel "" "pbbs mailfor hold sound" chat
  160.       }
  161.     }
  162.     if {$ALERTMONITOR == "y"} {
  163.       setlabel "" "pbbs mailfor alert mode" on
  164.       setlabel "" "pbbs mailfor alert mbox" $MYCALL
  165.       if {[info exists SOUNDS] && $SOUNDS == "y"} {
  166.         setlabel "" "pbbs mailfor alert sound" chat
  167.       }
  168.     }
  169.   }
  170. }
  171. #
  172. #
  173. if {$MBFWD == "y"} {
  174.   comment "PBBS forwarding parameters......."
  175.   commentmiddle "Forwarding leave 'off' till last thing......"
  176.   label "Enter your haddress, minus your callsign" "forward haddress"
  177.     setlabel "" "forward bid" on
  178.     setlabel "" "forward lzw" off
  179.     setlabel "" "forward mode" on
  180.     if {$FBBFWD == "y"} {
  181.       bool "Use FBB-style forwarding" "forward fbb-style on"
  182.       if {$ans == "y" && $FBBCMP == "y"} {
  183.         bool "Use FBB compressed forwarding" "forward fbb-compression on"
  184.       }
  185.     }
  186.   setlabel "" "forward smtp" off
  187.   setlabel "" "forward mycall" $MYCALL
  188.   label "Local time is how many hours from UTC (i.e. +1, -4)" "forward utc"
  189. }
  190. #
  191. #
  192. comment "FTP parameters....."
  193. setlabel "" "ftype" i
  194. setlabel "" "ftptdisc" 300
  195. label "Maximum number of incoming FTP sessions" "ftpmaxclients"
  196. #
  197. #
  198. comment "AX25 global parameters (before attaching any AX25 interface)...."
  199. setlabel "" "ax25 version" 2
  200. setlabel "" "ax25 maxframe" 1
  201. setlabel "" "ax25 pthresh" 128
  202. setlabel "" "ax25 paclen" 256
  203. setlabel "" "ax25 retries" 10
  204. setlabel "" "ax25 irtt" 2000
  205. setlabel "" "ax25 t3" 600000
  206. setlabel "" "ax25 t4" 1800
  207. setlabel "" "ax25 timertype" linear
  208. setlabel "" "ax25 window" 2048
  209. setlabel "" "ax25 blimit" 5
  210. setlabel "" "ax25 smartroute" off
  211. label "Callsign-SSID to use for outgoing connects" "ax25 user"
  212. #
  213. #
  214. if {$ASY == "y"} {
  215.   comment "AX25 interface setup ..."
  216.  
  217.   if {$ISUNIX == "n"} {
  218.     set PORT "none"
  219.     boollocal "Is you TNC connected to COM1" "y/n"
  220.     if {$ans == "y"} {
  221.       set PORT "0x3f8"
  222.       set IRQ "4"
  223.     } else {
  224.       boollocal "Is you TNC connected to COM2" "y/n"
  225.       if {$ans == "y"} {
  226.         set PORT "0x2f8"
  227.         set IRQ "3"
  228.       }
  229.     }
  230.   } else {
  231.     labellocal "What serial port is your TNC on" "ttyS0 - ttyS3" "ttyS0"
  232.     set PORT "$ans"
  233.     set IRQ "-"
  234.   }
  235.   if {$PORT == "none"} {
  236.     puts "\nI was unable to setup your TNC port. You will have to manualy edit"
  237.     puts "\nthe attach line into your autoexec.nos file.\n"
  238.   } else {
  239.     labellocal "what is the TNC's serial port baud rate" "1200 - 38400" "9600"
  240.     set BAUD "$ans"
  241.     setlabel "" "attach asy $PORT $IRQ ax25 tnc 1024 512" $BAUD
  242.     setlabel "" "ifconfig tnc description" "\"$MYCALL tnc radio port\""
  243.     label "IP address for your radio port" "ifconfig tnc ipaddress" "$IPADDR"
  244.     label "Broadcast Address of the radio port" "ifconfig tnc broadcast"
  245.     label "Netmask of the radio port" "ifconfig tnc netmask" "0xffffff00"
  246.   }
  247. }
  248. #    
  249. #
  250. if {$CONVERS == "y"} {
  251.   comment "Convers parameters"
  252.   label "Enter an alias callsign for the Conference Bridge" "convers mycall"
  253.   label "Enter a Conference hostname for your server" "convers hostname"
  254.   label "Conference site to link to (if known)" "convers link"
  255.   setlabel "" "convers hmax" 8192
  256.   setlabel "" "convers umax" 1024
  257.   setlabel "" "convers t4" 900
  258.   setlabel "" "convers maxwait" 120
  259.   setlabel "" "convers motd" "\"Check out the news (/news). Thanks! \[$MYCALL]\""
  260.   setlabel "" "convers sysinfo" "\"New TNOS server $HOSTNAME"
  261. }
  262. #
  263. comment "Security options...."
  264. setlabel "" "security mbsecure" off
  265. setlabel "" "security ax25perms" 0
  266. setlabel "" "security amprperms" 0
  267. setlabel "" "security nonamprperms" 0
  268. #
  269. #
  270. if {$WPAGES == "y"} {
  271.   comment "White Page commands...."
  272.   setlabel "" "wpage client" on
  273.   setlabel "" "wpage server" on
  274.   setlabel "" "wpage age" 75
  275. }
  276. #
  277. #
  278. if {$XSERVER == "y"} {
  279.   comment "TNOS/X commands....."
  280.   label "Enter address of a trusted Xhost" "xwindows hosts"
  281.   setlabel "" "start" x
  282. }
  283. #
  284. #
  285. comment "Assorted commands...."
  286. setlabel "" "log" net.log
  287. setlabel "" "history" 25
  288. #
  289. #
  290. comment "Now some last minute details...."
  291. if {$MBFWD == "y"} {
  292.   setlabel "" "# Finally, NOW we can start the forwarding timer...." ""
  293.   setlabel "" "forward timer" 300
  294.   setlabel "" "forward" kick
  295. }
  296. setlabel "" "#" ""
  297. setlabel "" "# And tell the world, that our work is complete!" ""
  298. setlabel "" "echo *** Processing: autoexec.nos complete on {$(ver s)} \"   \" {$(time)}" ""
  299. if {$STATS_USE == "y"} {
  300.   setlabel "" "stats usage" general
  301. }
  302.  
  303.